//
//  MRMCommodity.m
//  MeiRiMoney
//
//  Created by qiuqk on 13-6-29.
//  Copyright (c) 2013年 MeiRiCai. All rights reserved.
//

#import "MRMCommodity.h"
#import "MR_Convert.h"

@implementation MRMCommodity

- (id)initWithDictionary:(NSDictionary *) dict
{
	self.Id = [MR_Convert getLongWithKey:@"Id" fromDictionary:dict];
    self.Category = [MR_Convert getIntWithKey:@"Category" fromDictionary:dict];
	self.Name = [MR_Convert getStringWithKey:@"Name" fromDictionary:dict];
	self.Integral = [MR_Convert getLongWithKey:@"Integral" fromDictionary:dict];
	self.Price = [MR_Convert getDoubleWithKey:@"Price" fromDictionary:dict];
	
    return self;
}


@end
